html,
body {
  height: 100%;
  -webkit-text-size-adjust:none;
  font-family: 'Microsoft YaHei', 'PingFangSC-Regular';
}
// 圆形
.border_circle {
  border-radius: 50%;
}
// 圆角
.border_rounded {
  border-radius: 5px;
}
// 背景图
.bg_img {
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: cover;
}
//通用阴影容器
.shadow_box {
  box-shadow:0px 3px 6px 0px rgba(58,76,130,0.07),0px 2px 17px 0px rgba(34,47,85,0.05);
  border-radius:10px;
}
.shadow {
  box-shadow:0px 3px 6px 0px rgba(58,76,130,0.07),0px 2px 17px 0px rgba(34,47,85,0.05);
}
// 通用1px阴影边框
.box-shadow-1px-bottom {
  box-shadow: inset 0px -1px 1px -1.5px #aaa;
}
.box-shadow-1px-top {
  box-shadow: inset 0px 1px 1px -1.5px #aaa
}
.box-shadow-1px-left {
  box-shadow: inset 1px 0px 1px -1.5px #aaa
}
.box-shadow-1px-right {
  box-shadow: inset -1px 0px 1px -1.5px #aaa;
}
.box-shadow-1px-bottom-right {
  box-shadow: inset -1px -1px 1px -1.5px #aaa;
}
// 开发用
.dev {
  border: 1px solid #999;
}
// 一行文本
.text-one-line {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

// 【企业微信】【名片】在线咨询页面只展示了一半 改变外层iframe高度
#chatIframe{
  height: 100%;
}

iframe{
  height: 100%;
}

.box_border{
  border: 1px dashed #969EA8;
}
.box_border_house{
  border: 1px dashed rgba(0,122,230,0.5);
}
.border1px{
  border: 1px solid rgba(177, 189, 210, 0.5);
}
.boxShadow{
  box-shadow: 0px 2px 4px 0px rgba(206, 209, 214, 0.41);
}
.clearfix{
  overflow: hidden;
}
// @font-face{
//   font-family:'DINCondensed-Bold';
//   src: url('');
// }
/*设备像素比*/
@media only screen and (-webkit-min-device-pixel-ratio: 2.0), only screen and (min-resolution: 2dppx) {
  // 1px上边框
  .scale-1px{
    position: relative;
    border:none;
  }
  .scale-1px:after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: #ebedf0;
    width: 100%;
    height: 1px;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
  // 1px下边框
  .scale-1px-bottom{
    position: relative;
    border:none;
  }
  .scale-1px-bottom:after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: #eee;
    width: 100%;
    height: 1px;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }

  [class*=scale-1px-hairline] {
    position: relative;
    &::after{
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      background: #eee;
      width: 100%;
      height: 1px;
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
      transform-origin: 0 0;
    }
  }

  [class*=scale-1px-left-hairline] {
    position: relative;
    &::after{
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 32px; 
      border: 1px solid #979797; 
      width: 216px;
      height: 200%;
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
      -webkit-transform-origin: 0 0;
      transform-origin: 0 0;
    }
  }


}

@media only screen and (-webkit-min-device-pixel-ratio: 3.0), only screen and (min-resolution: 3dppx) {
  // 1px上边框
  .scale-1px{
    position: relative;
    border:none;
  }
  .scale-1px:after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: #ebedf0;
    width: 100%;
    height: 1px;
    -webkit-transform: scaleY(0.333);
    transform: scaleY(0.333);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
  // 1px下边框
  .scale-1px-bottom{
    position: relative;
    border:none;
  }
  .scale-1px-bottom:after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: #eee;
    width: 100%;
    height: 1px;
    -webkit-transform: scaleY(0.333);
    transform: scaleY(0.333);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
  [class*=scale-1px-hairline] {
    position: relative;
    overflow: hidden;
    &::after{
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      background: #CFCFD9;
      width: 100%;
      height: 1px;
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
      transform-origin: 0 0;
    }
  }
}


.line{
  position: relative;
  &::after{
    height: 1px;
    content: '';
    position: absolute;
    // background: #eee;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
  .line::after {
    background: -webkit-linear-gradient(top, #eee 50%, transparent);
    background: linear-gradient(to bottom, #eee 50%, transparent);
  }
}
@media only screen and (-webkit-min-device-pixel-ratio: 3.0) {
  .line::after {
    background: -webkit-linear-gradient(
      top,
      #eee 50%,
      transparent,
      transparent
    );
    background: linear-gradient(
      to bottom,
      #eee 30%,
      transparent,
      transparent
    );
  }
}
